# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gir-to-d
pkgver=0.21.0
pkgrel=0
pkgdesc=" Create D bindings from GObject introspection files"
url="https://github.com/gtkd-developers/gir-to-d"
arch="all !ppc64le !s390x !mips !mips64" # No gdc on these
license="LGPL-3.0-or-later"
makedepends="meson gcc-gdc"
options="!check" # no tests
source="https://github.com/gtkd-developers/gir-to-d/archive/v$pkgver/gir-to-d-$pkgver.tar.gz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="378a5c1cb1ec909fc39f1cc00b2479a0d826c3bdfe31b535e68719e4ccc74db548b670700dbf78eced417777477d1bcf5aad1cbe2bc15049f1ec52666c16a9da  gir-to-d-0.21.0.tar.gz"
